package com.kmb.provider.service;

import com.kmb.provider.api.LogService;
import com.kmb.provider.domain.SysLog;
import com.kmb.provider.mapper.LogMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;

@Slf4j
@Service(version = "1.0.0")
public class LogServiceImpl implements LogService {
    @Resource
    private LogMapper logMapper;

    @Override
    public String echo(String string) {
        log.info(string);
        return "Hello Dubbo" + string;
    }

    @Override
    public void saveLog(SysLog sysLog) {
        int i = logMapper.insertUseGeneratedKeys(sysLog);
    }
}
